#ifndef UI_WIDGET_H
#define UI_WIDGET_H

#include "cocos2d.h"

USING_NS_CC;

class UIWidget : public CCLayer
{
public:
	UIWidget();
	virtual ~UIWidget();
	
	virtual bool init();
	virtual void registerWithTouchDispatcher();

	static UIWidget* create();

	virtual CCRect rect();
protected:
	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
	virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
	virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);

protected:
	CC_SYNTHESIZE_PASS_BY_REF(bool, m_bEnable, Enable);
	CC_SYNTHESIZE_PASS_BY_REF(bool, m_bMoveable, Moveable);
};

#endif 